<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function Student(name,age,sex) {
            this.name = name;
            this.age = age;
            this.sex = sex;
            this.run = function () {
                alert(this.name + 'can running...');
            }
        }
        var zs = new Student('张三', 22, '男');
        var ls = new Student('李四', 34, '男');
        console.log('zs======>',zs.name);
        console.log('ls======>',ls.name);
        zs.run();
        ls.run();
    </script>
</body>
</html>